package com.cskaoyan.catmall.dao;


import com.cskaoyan.catmall.model.bo.CateGoryCreateBo;
import com.cskaoyan.catmall.model.bo.CateGoryUpdateBo;
import com.cskaoyan.catmall.model.bo.CategoryDeleteBo;
import com.cskaoyan.catmall.model.vo.CategoryL1Vo;
import com.cskaoyan.catmall.model.vo.CategoryListVo;
import org.apache.ibatis.annotations.Param;

import com.cskaoyan.catmall.model.vo.CategoryChildVo;
import com.cskaoyan.catmall.model.vo.CategoryVo;


import java.util.List;

public interface CategoryMapper {


    int insertCateGory(CateGoryCreateBo cateGoryCreateBo);


    List<CategoryListVo.ListDTO> selectCategoryList(@Param("id") Integer id);

    List<CategoryL1Vo.ListDTO> selectCategoryL1List(@Param("id") Integer id);

    void deleteCategoryChildren(List<CategoryDeleteBo.ChildrenDTO> children);

    void deleteCategory(CategoryDeleteBo categoryDeleteBo);

    void updateCateGory(CateGoryUpdateBo cateGoryUpdateBo);

    List<String> selectCategoryName();


    List<CategoryVo> select();

    List<CategoryChildVo> selectChild(Integer value);

    Integer selectCrossCategory(Integer categoryId);

    List<String> selectNameListL1();

    List<String> selectNameListL2(Integer pid);

    List<String> selectNameByPid(Integer id);

    List<String> selectNameListL1NoMyName(Integer id);
}

